from socket import*
from time import ctime

while True:
    cliSock=socket(AF_INET,SOCK_STREAM)
    cliSock.connect(('localhost',21567))
    data=raw_input('>')
    if not data:
        break
    cliSock.send('%s\r\n'%data)
    data=cliSock.recv(1024)
    if not data:
        break
    print data
cliSock.close()

    
